Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for different node data types and methods for setting node data #290

Merged
merged 10 commits into from
May 16, 2023

Conversation

sbaldu
Copy link
Collaborator

@sbaldu sbaldu commented May 14, 2023

In PR #288 an error has been fixed which prevented users from using non-numeric template type parameters.
Here I've added some tests in the *EdgeTest.cpp files, to check that everything works for all types. The only requirement is that the type parameters provides overloads of equality and iostream operators ( all this was discussed in issue #284 ).

In addition to this, I've added methods in Node and Graph classes which allow to set the data of the nodes after their constructions.
I think that this would be useful in some applications and is definitely needed when reading graphs from DOT files, because they don't allow to specify the data contained in the nodes.

@github-actions github-actions bot added core something about core test Something about test labels May 14, 2023
@ghost
Copy link

ghost commented May 14, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@ZigRazor ZigRazor linked an issue May 15, 2023 that may be closed by this pull request
@ZigRazor ZigRazor self-requested a review May 15, 2023 06:09
Copy link
Owner

@ZigRazor ZigRazor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you answer my question?

include/Graph/Graph.hpp Outdated Show resolved Hide resolved
include/Graph/Graph.hpp Show resolved Hide resolved
@ZigRazor ZigRazor requested a review from nrkramer May 15, 2023 06:19
include/Node/Node.hpp Outdated Show resolved Hide resolved
@ZigRazor ZigRazor requested review from nrkramer and ZigRazor May 15, 2023 10:05
@sbaldu sbaldu force-pushed the fix_template_type_support branch from a32d3e0 to f8ceb79 Compare May 15, 2023 20:51
@ZigRazor ZigRazor merged commit 6cd335f into ZigRazor:master May 16, 2023
@sbaldu sbaldu deleted the fix_template_type_support branch May 22, 2023 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core something about core test Something about test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support containing any type supported by STL
3 participants